package com.efast.dmom.mgmt.service.mes.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.dao.mes.PmPrintConfigDao;
import com.efast.dmom.mgmt.entity.mes.PmPrintConfig;
import com.efast.dmom.mgmt.service.mes.PmPrintConfigService;

@Service
public class PmPrintConfigServiceImpl implements PmPrintConfigService {

	@Autowired
	private PmPrintConfigDao printDao;
	@Override
	public ResultBean getAllPrintTemplate() {
		// TODO Auto-generated method stub
		ResultBean resultBean = new ResultBean(true);
		List<PmPrintConfig> printTemplateList = printDao.getAllPrintTemplate();
		resultBean.setObject(printTemplateList);
		return resultBean;
	}

	@Override
	public ResultBean getAllPrinter() {
		ResultBean resultBean = new ResultBean(true);
		List<PmPrintConfig> printerList = printDao.getAllPrinter();
		resultBean.setObject(printerList);
		return resultBean;
	}

}
